#if UNITY_EDITOR
using UnityEngine;
#endif
public class ConstDataTable
{
   public GoodsArche_Table[] goods;
   public AINameArche_Table[] aiNameArche;
   public TipsArche_Table[] tips;
   public AdConfig_Table adConfig;
   public LanguageArche_Table[] langs;
    public ConstDataTable()
    {
       goods = new GoodsArche_Table[]{new GoodsArche_Table()};
       aiNameArche = new AINameArche_Table[]{new AINameArche_Table()};
       tips = new TipsArche_Table[]{new TipsArche_Table()};
       adConfig = new AdConfig_Table();
       langs = new LanguageArche_Table[]{new LanguageArche_Table()};
    }
   public  ConstDataTable(ConstData constData)
    {
        if (constData == null)
        {
            GameDebug.LogError("constData == null");
            return;
        }
        if (constData.goods != null)
        {
            int GoodsArche_TableLength = constData.goods.Length;
            this.goods = new GoodsArche_Table[GoodsArche_TableLength];
            for (int i = 0; i < GoodsArche_TableLength; i++)
            {
                this.goods[i] = new GoodsArche_Table(constData.goods[i]);
            }
        }
        if (constData.aiNameArche != null)
        {
            int AINameArche_TableLength = constData.aiNameArche.Length;
            this.aiNameArche = new AINameArche_Table[AINameArche_TableLength];
            for (int i = 0; i < AINameArche_TableLength; i++)
            {
                this.aiNameArche[i] = new AINameArche_Table(constData.aiNameArche[i]);
            }
        }
        if (constData.tips != null)
        {
            int TipsArche_TableLength = constData.tips.Length;
            this.tips = new TipsArche_Table[TipsArche_TableLength];
            for (int i = 0; i < TipsArche_TableLength; i++)
            {
                this.tips[i] = new TipsArche_Table(constData.tips[i]);
            }
        }
       this.adConfig = new AdConfig_Table(constData.adConfig);
        if (constData.langs != null)
        {
            int LanguageArche_TableLength = constData.langs.Length;
            this.langs = new LanguageArche_Table[LanguageArche_TableLength];
            for (int i = 0; i < LanguageArche_TableLength; i++)
            {
                this.langs[i] = new LanguageArche_Table(constData.langs[i]);
            }
        }
    }
}


public class GoodsArche_Table
{
    public string goodsId;
    public int type;
    public int value;
    public string nameKey;
    public string descKey;
    public float price;
    public bool useMoney;
    public string applePurchaseId;
    public string googlePurchaseId;
    public string unityPurchaseId;
    public bool limit;
    public GoodsArche_Table()
     {
     }
    public GoodsArche_Table(GoodsArche arche)
    {
       this.goodsId = arche.goodsId;
       this.type = arche.type;
       this.value = arche.value;
       this.nameKey = arche.nameKey;
       this.descKey = arche.descKey;
       this.price = arche.price;
       this.useMoney = arche.useMoney;
       this.applePurchaseId = arche.applePurchaseId;
       this.googlePurchaseId = arche.googlePurchaseId;
       this.unityPurchaseId = arche.unityPurchaseId;
       this.limit = arche.limit;
    }
}


public class AINameArche_Table
{
    public string name;
    public AINameArche_Table()
     {
     }
    public AINameArche_Table(AINameArche arche)
    {
       this.name = arche.name;
    }
}


public class TipsArche_Table
{
    public string contentKey;
    public TipsArche_Table()
     {
     }
    public TipsArche_Table(TipsArche arche)
    {
       this.contentKey = arche.contentKey;
    }
}


public class AdConfig_Table
{
    public string admodAndroidBannerId;
    public string admodIOSBannerId;
    public string admodAndroidInterstitialId;
    public string admodIOSInterstitialId;
    public string admodAndroidVideoId;
    public string admodIOSVideoId;
    public string uniyAdsAndroidGameId;
    public string uniyAdsIOSGameId;
    public string unityAdsBannerPlacementId;
    public string unityAdsInterstitialPlacementId;
    public string unityAdsRewardVideoPlacementId;
    public AdConfig_Table()
     {
     }
    public AdConfig_Table(AdConfig arche)
    {
       this.admodAndroidBannerId = arche.admodAndroidBannerId;
       this.admodIOSBannerId = arche.admodIOSBannerId;
       this.admodAndroidInterstitialId = arche.admodAndroidInterstitialId;
       this.admodIOSInterstitialId = arche.admodIOSInterstitialId;
       this.admodAndroidVideoId = arche.admodAndroidVideoId;
       this.admodIOSVideoId = arche.admodIOSVideoId;
       this.uniyAdsAndroidGameId = arche.uniyAdsAndroidGameId;
       this.uniyAdsIOSGameId = arche.uniyAdsIOSGameId;
       this.unityAdsBannerPlacementId = arche.unityAdsBannerPlacementId;
       this.unityAdsInterstitialPlacementId = arche.unityAdsInterstitialPlacementId;
       this.unityAdsRewardVideoPlacementId = arche.unityAdsRewardVideoPlacementId;
    }
}


public class LanguageArche_Table
{
    public string key;
    public string CN;
    public string EN;
    public string TC;
    public LanguageArche_Table()
     {
     }
    public LanguageArche_Table(LanguageArche arche)
    {
       this.key = arche.key;
       this.CN = arche.CN;
       this.EN = arche.EN;
       this.TC = arche.TC;
    }
}


